<?php
if(!@$mostdownloads)
	return '';
?> 
<div class="bucket topdownloads clearfix madsbox" id="topdownloads">
        <div class="title">
            <span>Tải nhiều trong tuần</span>
        </div>
        <ul class="listbox-view clearfix">
		<?php 
		if(@$mostdownloads)
		foreach($mostdownloads as $mostdownload){ ?>
                <li class="list-item clearfix">
                    <div class="list-item-title">
                        <a class="title" href="<?php echo soft_url($mostdownload,$mostdownload->CAT_CODE);?>" title="<?php echo $mostdownload->SOFT_NAME;?>">
                           <?php echo  $mostdownload->SOFT_NAME;?>
                                <em><?php echo  $mostdownload->SOFT_VERSION;?></em>
                        </a>
                        <a class="item-image" href="<?php echo soft_url($mostdownload,$mostdownload->CAT_CODE);?>" title="<?php echo  $mostdownload->SOFT_NAME;?>">
                            <img src="<?php echo image_src($mostdownload->SOFT_THUMB);?>"></a>
                        <span class="item-downloads"><?php echo  $mostdownload->totaldownload;?></span>
                    </div>
                </li>
                <?php }?>
        </ul>
    </div>